package com.cdc.statusbar;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class StatusBarMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_status_bar);
    }

    public void statusBar1(View view) {
        goToActivity(GetStatusBarHeightActivity.class);
    }


    private void goToActivity(Class<? extends  AppCompatActivity> claz){
        Intent intent=new Intent();
        intent.setClass(this,claz);
        startActivity(intent);
    }

    public void dimStaNaBar(View view) {
        goToActivity(DimStaNaBarActivity.class);
    }


    public void hideStaNaBar(View view) {
        goToActivity(HideStaBarActivity.class);
    }

    public void fullScreen(View view) {
        goToActivity(FullScreenActivity.class);
    }

    public void noActionBar(View view) {
        goToActivity(NoActionBarActivity.class);
    }

    public void transparentStaBar(View view){
        goToActivity(TransparentStaBarActivity.class);

    }

    public void hideStaNavActionBar(View view){
        goToActivity(HideStaNavAcBarActivity.class);
    }

    public void transparentNavBar(View view){
        goToActivity(TransparentNavBarActivity.class);
    }

    public void fullScreenExit(View view){
        goToActivity(FullScreenExitActivity.class);
    }
}
